package com.cindata

class RiskWarningConfig
{
    String label
    // 名称
    BigDecimal minValue
    // 最小值
    String minOperator
    // 最小值操作符
    BigDecimal maxValue
    // 最大值
    String maxOperator
    // 最大值操作符
    Integer orderNumber
    // 排序
    String code
    // 唯一代码
    Boolean isAuto
    // 触发方式
    String duration
    // 更新频次
    Workflow workflow
    // 工作流
    String value
    // 关键字符串

    static constraints = {
        label maxSize: 50, comment: '名称'
        minValue precision: 15, scale: 4, nullable: true, blank: true, comment: '最小值'
        minOperator maxSize: 5, nullable: true, blank: true, comment: '最小值操作符'
        maxValue precision: 15, scale: 4, nullable: true, blank: true, comment: '最大值'
        maxOperator maxSize: 5, nullable: true, blank: true, comment: '最大值操作符'
        code maxSize: 32, unique: true, nullable: false, comment: '唯一代码'
        orderNumber maxSize: 5, nullable: true, blank: true, comment: '排序'
        isAuto nullable: true, blank: true, comment: '触发方式'
        duration maxSize: 10, nullable: true, blank: true, comment: '更新频次'
        workflow nullable: true, blank: true, comment: '工作流'
        value maxSize: 256, nullable: true, blank: true, comment: '关键字符串'
    }

    static mapping = {
        sort orderNumber: 'asc'
        cache true
    }
}
